package com.colzry.mybatisplus.service.Imp;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.colzry.mybatisplus.entity.User;
import com.colzry.mybatisplus.mapper.UserMapper;
import com.colzry.mybatisplus.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImp extends ServiceImpl<UserMapper, User> implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public void addUser(User user) {
        userMapper.insert(user);
    }
//
//    public User getById(int id) {
//        return userMapper.getUserById(id);
//    }
}
